home *** CD-ROM | disk | FTP | other *** search
- function heliMove()
- {
- heli._y += 0;
- heli._y -= heli_speed;
- }
- function heliUp()
- {
- if(heli_speed < 7 && live == 0)
- {
- heli_speed += 0.8;
- heli._rotation += 1;
- }
- }
- function heliDown()
- {
- if(heli_speed > -6 && live == 0)
- {
- heli_speed -= 0.8;
- heli._rotation -= 1;
- }
- }
- function scoreplus(sss, aaa)
- {
- clearinterval(noscore);
- s_score = "point_p_10" + scoree;
- var _loc1_ = attachMovie(sss,s_score,scoree + 200000);
- scoree++;
- _loc1_._x = aaa._x;
- _loc1_._y = aaa._y;
- score_MC_AR[scoree] = _loc1_;
- noscore = setInterval(score_fade,20,score_MC_AR[scoree]);
- score_MC_AR_del[scoree] = noscore;
- }
- function score_fade(bbb)
- {
- bbb._y -= 3;
- bbb._alpha -= 5;
- if(bbb._alpha <= 10)
- {
- clearInterval(score_MC_AR[bbb]);
- }
- }
- live = 0;
- clearInterval(heli_inter);
- var mousecheck_inter;
- var y_ss = 602;
- var heli_inter;
- heli_speed = 0;
- var mouse = new Object();
- if(sound_aa != 2)
- {
- var enemy_mp3 = new Sound();
- enemy_mp3.attachSound("heli.wav");
- var enemy_mp4 = new Sound();
- var enemy_mp5 = new Sound();
- sound_aa = 2;
- }
- mouse.onMouseWheel = function()
- {
- if(go33 == 1 && ammo > 0)
- {
- ammo--;
- shoot(heli,"missle");
- go33 = 0;
- }
- };
- mouse.onMouseDown = function()
- {
- if(music._currentframe == 1 && musicon != 1)
- {
- music.gotoAndPlay(2);
- }
- if(player == 1)
- {
- if(sound_con._currentframe == 1)
- {
- sound_con.gotoAndPlay(2);
- }
- clearInterval(mousecheck_inter);
- mousecheck_inter = setInterval(heliUp,8);
- }
- };
- mouse.onMouseUp = function()
- {
- if(player == 1)
- {
- clearInterval(mousecheck_inter);
- mousecheck_inter = setInterval(heliDown,8);
- }
- };
- Mouse.addListener(mouse);
- heli_inter = setInterval(heliMove,20);
- scoree = 0;
- var noscore;
- var score_MC_AR_del = new Array();
- var score_MC_AR = new Array();
- enemy_mp3.stop();
-